﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AutoSearch : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        System.Threading.Thread.Sleep(3000);
        if (!Page.IsPostBack)
        {
            string Action = Request.Params["Action"];
            if (Action == "html")
            {
                Response.Write("<div id='item1'><span class='keyTxt'>阿会楠一直在坚持走自己的路</span><span class='Number'>(15)</span></div>");
                Response.Write("<div id='item2'><span class='keyTxt'>阿会楠今年</span><span class='Number'>(3)</span></div>");
                Response.Write("<div id='item3'><span class='keyTxt'>阿会楠现在在汕头</span><span class='Number'>(4)</span></div>");
                Response.Write("<div id='item4'><span class='keyTxt'>阿会楠会回广州</span><span class='Number'>(22)</span></div>");
                Response.Write("<div id='item5'><span class='keyTxt'>搜索吧是阿会楠在大学期间的作品之一</span><span class='Number'>(4)</span></div>");

            }
            else
            {
                Response.ContentType = "text/xml";
                Response.ContentEncoding = Encoding.GetEncoding("utf-8");
                Response.Write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
                Response.Write("<keylit>");
                Response.Write("\t<key value=\"阿会楠一直在坚持走自己的路\" />\n");
                Response.Write("\t<key value=\"阿会楠今年25岁了！\" />\n");
                Response.Write("\t<key value=\"阿会楠现在在汕头！\" />\n");
                Response.Write("\t<key value=\"阿会楠会回广州！\" />\n");
                Response.Write("\t<key value=\"搜索吧是阿会楠在大学期间的作品之一！\" />\n");
                Response.Write("\t<key value=\"sosuo8.com by ahuinan\" />\n");
                Response.Write("</keylit>");
            }
        }
    }
}